# Contribuitor: sick <sick@rape.lol>
# Maintainer: sick <sick@rape.lol>
pkgname=sinit
pkgver=1.0
pkgrel=0
pkgdesc="A suckless init"
url="https://core.suckless.org/sinit/"
arch="all"
license="MIT"
depends=""
makedepends="$depends"
subpackages="$pkgname-doc"
source="https://git.suckless.org/sinit/snapshot/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make || return 1
}

package() {
	cd "$builddir"
	make PREFIX=/ MANPREFIX=/usr/share/man \
	DESTDIR=$pkgdir install || return 1
}

sha512sums="8f4f3a56770f8558d053a63c260879688720a0b42dafb968d37d1fdfe1a3a1f534d8350e006b05583e94a394cdf62c8c22989f01f1e06737743362d816512aa3  sinit-1.0.tar.gz"
